﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.Data;

public partial class Luuli : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {


            int day = DateTime.Now.Day;
            int month = DateTime.Now.Month;
            int yeah = DateTime.Now.Year;
            //TimeSpan hour = DateTime.Now.TimeOfDay;
            time.Text = "Ngày " + day.ToString() + " tháng " + month.ToString() + " năm " + yeah.ToString();
            SanPhamGiamGiaBLL sp = new SanPhamGiamGiaBLL();
            DataTable a = sp.laytatca();
            showSP.DataSource = a;
            showSP.DataBind();
        }
    }
}
